<template>
	<view class="hsb-address-page">
		<view class="hsb-address-content">
			<image class="icon-address" src="@/static/images/icon_hsb_address.png"></image>
			<view class="address-title">邮寄地址</view>
			<view class="address-content">
				<view>{{ hsbAddress.address }}</view>
				<view>{{ hsbAddress.company }}</view>
				<view>Tel：{{ hsbAddress.mobile }}</view>
			</view>
		</view>
	</view>
</template>

<script>	
import { mapState } from 'vuex'

export default {
	computed: {
		...mapState({
			hsbAddress: state => state.hsbAddress
		})
	},
	onLoad () {
		this.$store.dispatch('getHsbAddress')
	}
}
</script>

<style lang="scss" scoped>
@import './index.scss';
</style>
